//
//  UIImage+Resized.m
//  smzdm_lib
//
//  Created by tom on 16/6/5.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "UIImage+Resized.h"

@implementation UIImage (Resized)

+ (UIImage *)resizedImage:(NSString *)name {

    UIImage *image = [self imageNamed:name];
    
    image = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    
    return image;
}
@end
